﻿#ifndef _CMSG_H_
#define _CMSG_H_

#ifdef __cplusplus
extern "C" {
#endif


#define AS_MSG(var) ((CMsg*)var)

#pragma pack(push, 1)
typedef struct _cmsg_ {
	unsigned short msg_id;
	unsigned short data_len; //CMsg's len do not included in
} CMsg;
#pragma pack(pop)

int init_msg(CMsg* msg);

#ifdef __cplusplus
}
#endif
#endif
